package com.cg.managesystem.service;

import com.cg.managesystem.entity.Post;

import java.util.List;

/**
 * Created on 2019/8/14 by Tinchi
 **/
public interface PostService {
    //查询所有帖子
    List<Post> findAllPosts();
    //新增帖子
    int addPost(Post post);
    //按ID删除帖子
    Post deletePostById(Integer id);
    //按ID更新帖子
    int updatePostById(Post post);
    //按ID查找帖子
    int findPostById(Integer id);
}
